import { defineStore } from 'pinia'
import { ListViewDictData } from "../types/dict";
import { Config, ListConfigParmData } from "../types/config";
export const useConfigStore = defineStore({
  id: 'config',
  state: () => {
    return {
      systemConfig: <Config><unknown>[],
      dicts: [<ListViewDictData>{}],
      parameter: [<ListConfigParmData>{}],
    }
  },
  persist: {
    storage: localStorage,
    paths: ['systemConfig', 'dicts', 'parameter'],
  }
})
